<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
	<body>
		<ui:composition template="/WEB-INF/templates/template.xhtml">
			<ui:define name="content">
				<h2>Find Owners:</h2>
				<h:form>
					<h:panelGrid columns="1" styleClass="form">
						<h:column>
							<h:outputLabel value="Last Name:" for="lastName" />
							<h:message for="lastName" />
							<br />
							<h:inputText value="#{lastName}" id="lastName" size="30" maxlength="80" />
						</h:column>
						<h:column>
							<span class="submit">
								<h:commandButton type="submit"
												 action="#{clinic.findOwner(lastName)}"
												 value="Find Owners" />
							</span>
						</h:column>
					</h:panelGrid>
				</h:form>
				
				<br />
				<h:outputLink value="edit-owner.xhtml">
					<h:outputText value="Add Owner" />
				</h:outputLink>
			</ui:define>
		</ui:composition>
	</body>
</html>
